import { _decorator, Component, Node } from 'cc';
import { UIBase } from './UIBase';
const { ccclass, property } = _decorator;

@ccclass('Menu')
export class Menu extends UIBase {
    oninit(...rest: any[]): void {
        this.addClickEventL("_SettingBtn",()=>{
            this.openUI("Setting");
            
        })
        this.addClickEventL("_StartBtn",()=>{
            this.openUI("Select");
            //this.openUI("Game");
            this.closeUI("Menu");
            this.closeUI("Setting");
        })
    }
}


